import {
    defineStore
} from "pinia";

import  getAllcity   from "../../services/modules/city"

const useCityStore = defineStore("city", {
    state: () => ({
        allCitys: {},
        currentCity: {
            cityName:"广州"
        } 
    }),
    actions: {
         async getAllCitys() {
            const res = await getAllcity();
            this.allCitys = res.data;   
        }
    }
})

export default useCityStore;